# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-pytest-mock
_pkgname=pytest-mock
pkgver=2.0.0
pkgrel=6
pkgdesc='Thin-wrapper around the mock package for easier use with py.test.'
url='https://pypi.org/project/pytest-mock/#files'
arch=('any')
license=('MIT')
depends=('python2' 'python2-pytest' 'python2-mock')
makedepends=('python2-setuptools' 'python2-pip' 'python2-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('8bd7f634afebeae628470270c81f0198647bf8cd5b0fac438891d881d9823e40e814d598670bb9c9722b864990958e69d385c7c6a6e2adc81d2adcb303fbe0b0')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

